package cn.edu.lingnan.service;

import cn.edu.lingnan.dao.CountryMapper;
import cn.edu.lingnan.dao.VacMapper;
import cn.edu.lingnan.pojo.C_V;
import cn.edu.lingnan.pojo.Vac;

import java.util.List;

public class VacServiceMysqlImpl implements VacService{
    private VacMapper vacMapper;

    public void setVacMapper(VacMapper vacMapper) {
        this.vacMapper = vacMapper;
    }


    @Override
    public Vac findVacByVac_id(int vac_id) {
        return vacMapper.findVacByVac_id( vac_id);
    }

    @Override
    public int insertInfoToVac(Vac _cd) {
        return vacMapper.insertInfoToVac(_cd);
    }

    @Override
    public C_V findVacByVac_idIfInC_V(int vac_id) {
        return vacMapper.findVacByVac_idIfInC_V(vac_id);
    }

    @Override
    public int updataVac(Vac _sd) {
        return vacMapper.updataVac(_sd);
    }

    @Override
    public boolean deleteVac(int vac_id) {
        return vacMapper.deleteVac(vac_id);
    }

    @Override
    public List<Vac> findAllVac() {
        return vacMapper.findAllVac();
    }

    @Override
    public List<Vac> findAllVac_isdelete() {
        return null;
    }
}
